import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'

export const layout = () => {
    return import('@/layout/Index.vue')
}

export const constantRoutes: RouteRecordRaw[] = [
    {
        path: '/',
        name: '/',
        component: layout,
    },
]
const router = createRouter({
    history: createWebHashHistory(),
    routes: constantRoutes,
    scrollBehavior: () => ({ left: 0, top: 0 }),
})

export default router
